
// https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/bluetooth_services/services/nus.html
const NUS_SERVICE_UUID = "6E400001-B5A3-F393-E0A9-E50E24DCCA9E";
const NUS_TX_CHARACTERISTIC_UUID = "6E400003-B5A3-F393-E0A9-E50E24DCCA9E"; // app tx, device rx (notify)
const NUS_RX_CHARACTERISTIC_UUID = "6E400002-B5A3-F393-E0A9-E50E24DCCA9E"; // app rx, device tx (write)

const DEVICE_INFORMATION_SERVICE_UUID = "0000180A-0000-1000-8000-00805F9B34FB";
const DI_MANUFACTURER_NAME_UUID = "00002A29-0000-1000-8000-00805F9B34FB"; // 设备制造商的名称
const DI_MODELNUMBER_UUID = "00002A24-0000-1000-8000-00805F9B34FB"; // 产品的型号
const DI_FIRMWARE_REVISION_UUID = "00002A26-0000-1000-8000-00805F9B34FB"; // 设备内固件的版本号

const DI_HARDWARE_REVISION_UUID = "00002A27-0000-1000-8000-00805F9B34FB"; // 产品的硬件编号
const DI_SERIAL_NUMBER_UUID = "00002A25-0000-1000-8000-00805F9B34FB"; // 产品编号
const DI_SOFTWARE_REVISION_UUID = "00002A28-0000-1000-8000-00805F9B34FB"; // 应用软件版本号

const BATTERY_SERVICE_UUID = "0000180A-0000-1000-8000-00805F9B34FB";
const BATTERY_LEVEL_UUID = "00002A29-0000-1000-8000-00805F9B34FB";

const FRAME_PING = 0x81;
const FRAME_KEEP_ALIVE = 0x82;
const FRAME_MSG = 0x83;
const FRAME_ERROR = 0xBF;

const FRAME_ERR_CMD = 0x01;
const FRAME_ERR_PARAM = 0x02;
const FRAME_ERR_LENGTH = 0x03;
const FRAME_ERR_SEQ = 0x04;
const FRAME_ERR_TIMEOUT = 0x05;
const FRAME_ERR_UNKNOWN = 0x7F;
